import React from 'react';
import './index.less'
export function MiniCar(props){
    return (
        <div className='miniCar'>
            {
                props.carList.map((item,index) => {
                   return (
                       <div className='minibox' key={index}>
                           <div className='miniImg'>
                               <img src={item.gimg} alt=""/>
                           </div>
                           <div className='miniDesc'>
                               <div className='miniTitle'>
                                   {item.gname}
                               </div>
                               <div className='miniColor'>
                                   {item.gcolor}
                               </div>
                               <div className='miniCount'>
                                   x{item.gcount}
                               </div>
                           </div>
                       </div>
                   )
                })
            }
        </div>
    )
}